package com.cnt.service;

import com.cnt.entity.Persons;
import com.cnt.vo.ResultVo;
import org.springframework.web.multipart.MultipartFile;


import java.io.InputStream;
import java.util.List;

public interface PersonService {
    ResultVo<List<Persons>> getPersons(int userId);

    ResultVo<Persons> addPerson(Persons person);

    ResultVo<Persons> updatePersons(Persons person);

    ResultVo<Persons> deletePersons(int personId);

    ResultVo<String> upload(MultipartFile file, Integer personId);

    public InputStream download(Integer personId);
    ResultVo<Persons>getPerson(Integer personId);
}
